#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>

int main (){
   int file;
 
   file = open("newfile.text", O_RDWR | O_CREAT , 0000);
   if(file<0){
       printf("error!\n");
       exit(1);
   }
     int x ; x = close(file);
     
     if(x < 0){
       printf("error!\n");
       exit(1);
   }



    return 0 ;
}